import { defineStore } from "pinia";
import { Paper } from "../index";

const usePaperStore = defineStore("paper", {
  persist: true,
  state: () => {
    return {
      paper: null as null | Paper,
    };
  },
  getters: {
    getPaper: (state) => {
      return state.paper;
    },
  },
  actions: {
    setPaper(paper: Paper) {
      this.paper = paper;
    },
  },
});

export default usePaperStore;
